package java46_oo4;

import java.util.Scanner;

public class Test {
	public static void main(String[] args) {
		Student s = new Student();
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入姓名:");
		s.name = sc.next();
		System.out.println("java成绩：");
		s.java = sc.nextDouble();
		System.out.println("c#成绩：");
		s.csharp = sc.nextDouble();
		System.out.println("db成绩：");
		s.db = sc.nextDouble();
		s.show();
		System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>计算平均分：");
		ScoreStat ss = new ScoreStat();
		double avg = ss.getAvg(s);
		s.show();
		System.out.println(s.name + "平均分是" + avg);

	}
}
